package com.zhaozhaonews.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhaozhaonews.model.wemedia.entity.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 自媒体图文引用素材信息表 Mapper 接口
 * </p>
 *
 * @author WanJL
 * @since 2025-02-17
 */
@Mapper
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {
    Integer insertWmNewsMaterial(
            @Param("materialIds") List<Integer> materialIds,
            @Param("newsId") Integer newsId,
            @Param("type")  Short type
    );
}
